<template>
	<view class="PT_2">
		<view class="bg_fff PLR_4 PTB_3">
			<view class="flex_row_between">
				<view class="">
					<view class="">
						手机号
					</view>
					<view class="fontS_10 color_gray">
						{{user.name}}
					</view>
				</view>
				<image class="W_4vw" src="../../static/goyou.png" mode="widthFix"></image>
			</view>
			<view @click="uOpenWin('./repass')" class="flex_row_between PTB_4">
				<view class="">
					登录密码
				</view>
				<image class="W_4vw" src="../../static/goyou.png" mode="widthFix"></image>
			</view>
			<view @click="uOpenWin('./repaypass')" class="flex_row_between PB_4">
				<view class="">
					安全密码
				</view>
				<image class="W_4vw" src="../../static/goyou.png" mode="widthFix"></image>
			</view>


		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				user: {}
			}
		},
		onShow() {
			this.getUser()
		},
		onLoad() {
			this.getUser()
		},
		methods: {
			getUser() {
				let _this = this;
				this.$req('auth/me', {}, function(res) {
					_this.user = res.data;
				})
			}
		}
	}
</script>

<style>

</style>
